package Day02_java流程控制.Java10_逻辑结构.循环结构.for循环;
public class 增强for循环 {
    public static void main(String[] args) {
        int[] numbers = {10,20,30,40,50};//定义一个数组
        for (int i = 0; i < 5; i++) {
            System.out.println(numbers[i]);
        }
        for (int x : numbers){
            //遍历数组的元素
            System.out.println(x);
        }
    }
}
